package com.siyougame.common.constant;

public enum ResponseCode {
    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    INVALID_SIGN(501, "签名验证未通过!"),
    PARAMETER_ERROR(502, "参数格式异常!"),
    NO_SERV(503, "无权限!"),
    NO_AUTH(401, "未登录或登录失效,请重新登陆!"),
    NO_MOBILE(402, "未授权获取手机号码!"),
    NOT_LOGIN(-1, "未登录或登录失效,请重新登陆!"),
    NOHANDLERFOUND(404, "资源不存在,请检查访问地址是否正确!");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
